import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import centerrouter from './routes/center'
import cinemarouter from './routes/cinema'
import filmrouter from './routes/film'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
   
    redirect:'/film'
  },
  {
    path: '/filmdetail/:filmid',
    name:'filmdetail',
    component:()=>import('@/views/Detail/Detail.vue')
  },
  {
    path: '/vuex',
  
    component:()=>import('@/views/vuex/Vuex.vue')
  },
  {
    path:'/city',
    name:'city',
    component:()=>import('@/views/City/City.vue')
  },
  centerrouter,
  cinemarouter,
  filmrouter
  
  
]

const router = new VueRouter({
  routes
})

export default router
